package com.jingyi.system.service.impl;

import com.jingyi.system.domain.SysUser;
import org.springframework.stereotype.Service;
import com.jingyi.system.mapper.SysUserMapper;
import com.jingyi.system.service.ISysUserService;

import javax.annotation.Resource;

/**
 * 用户 业务层处理
 * 
 * @author linzhihai
 */
@Service
public class SysUserServiceImpl implements ISysUserService
{
    @Resource
    private SysUserMapper userMapper;

    /**
     * 通过用户名和密码查询用户
     *
     * @param sysUser 用户信息
     * @return 用户对象信息
     */
    @Override
    public SysUser selectUserByUserNameAndPassword(SysUser sysUser)
    {
        return userMapper.selectUserByUserNameAndPassword(sysUser);
    }

}
